/*
 * Created by JFormDesigner on Sat Dec 17 12:34:17 CST 2022
 */

package view.reg;

import java.awt.*;
import javax.swing.*;
import com.jgoodies.forms.factories.*;

/**
 * @author 1
 */
public class RegisterFrameView extends JFrame {
    public static void main(String[] args) {
        RegisterFrameView frame = new RegisterFrameView();
        frame.setVisible(true);
    }

    public JButton getEnter() {
        return enter;
    }

    public JPanel getPanel5() {
        return panel5;
    }

    public JTextField getUsername() {
        return username;
    }

    public JTextField getPassword() {
        return password;
    }

    public JTextField getEnPassword() {
        return enPassword;
    }

    public RegisterFrameView() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
        panel1 = new JPanel();
        label1 = compFactory.createLabel("\u6ce8\u518c");
        panel2 = new JPanel();
        panel3 = new JPanel();
        enter = new JButton();
        panel4 = new JPanel();
        panel5 = new JPanel();
        label2 = new JLabel();
        username = new JTextField();
        label3 = new JLabel();
        password = new JTextField();
        label4 = new JLabel();
        enPassword = new JTextField();

        //======== this ========
        setMinimumSize(new Dimension(530, 500));
        setTitle("NF\u56fe\u4e66\u7ba1\u7406\u7cfb\u7edf");
        Container contentPane = getContentPane();
        contentPane.setLayout(new BorderLayout(20, 30));

        //======== panel1 ========
        {
            panel1.setLayout(new BorderLayout());

            //---- label1 ----
            label1.setHorizontalAlignment(SwingConstants.CENTER);
            label1.setFont(new Font("Microsoft YaHei UI", Font.BOLD, 50));
            panel1.add(label1, BorderLayout.NORTH);
        }
        contentPane.add(panel1, BorderLayout.PAGE_START);

        //======== panel2 ========
        {
            panel2.setLayout(new BorderLayout());
        }
        contentPane.add(panel2, BorderLayout.LINE_START);

        //======== panel3 ========
        {
            panel3.setLayout(new BorderLayout());

            //---- enter ----
            enter.setText("\u6ce8\u518c\u65b0\u7528\u6237");
            enter.setFont(enter.getFont().deriveFont(enter.getFont().getSize() + 20f));
            panel3.add(enter, BorderLayout.NORTH);
        }
        contentPane.add(panel3, BorderLayout.PAGE_END);

        //======== panel4 ========
        {
            panel4.setLayout(new BorderLayout());
        }
        contentPane.add(panel4, BorderLayout.LINE_END);

        //======== panel5 ========
        {
            panel5.setLayout(new GridLayout(3, 2, 3, 50));

            //---- label2 ----
            label2.setText("\u7528\u6237\u540d:    ");
            label2.setHorizontalAlignment(SwingConstants.RIGHT);
            label2.setFont(label2.getFont().deriveFont(label2.getFont().getSize() + 20f));
            panel5.add(label2);

            //---- username ----
            username.setColumns(2);
            username.setFont(username.getFont().deriveFont(username.getFont().getSize() + 20f));
            panel5.add(username);

            //---- label3 ----
            label3.setText("\u5bc6\u7801:    ");
            label3.setHorizontalAlignment(SwingConstants.RIGHT);
            label3.setFont(label3.getFont().deriveFont(label3.getFont().getSize() + 20f));
            panel5.add(label3);

            //---- password ----
            password.setFont(password.getFont().deriveFont(password.getFont().getSize() + 20f));
            panel5.add(password);

            //---- label4 ----
            label4.setText("\u786e\u8ba4\u5bc6\u7801:    ");
            label4.setHorizontalAlignment(SwingConstants.RIGHT);
            label4.setFont(label4.getFont().deriveFont(label4.getFont().getSize() + 20f));
            panel5.add(label4);

            //---- enPassword ----
            enPassword.setFont(enPassword.getFont().deriveFont(enPassword.getFont().getSize() + 20f));
            panel5.add(enPassword);
        }
        contentPane.add(panel5, BorderLayout.CENTER);
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JPanel panel1;
    private JLabel label1;
    private JPanel panel2;
    private JPanel panel3;
    private JButton enter;
    private JPanel panel4;
    private JPanel panel5;
    private JLabel label2;
    private JTextField username;
    private JLabel label3;
    private JTextField password;
    private JLabel label4;
    private JTextField enPassword;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
